//
//	MCStartXunLianActionPlanDetailActionList.swift
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport

import Foundation 
import ObjectMapper


class MCStartXunLianActionPlanDetailActionList : NSObject, NSCoding, Mappable{

	var actionBenifitVoice : AnyObject?
	var actionId : String?
	var actionName : String?
	var actionNumber : AnyObject?
	var actionTime : Int?
	var actionType : AnyObject?
	var actionWeight : AnyObject?
	var beforeActionVoice : AnyObject?
	var createTime : String?
	var createUser : Int?
	var id : String?
	var isDeleted : Int?
	var planDetailId : String?
	var planId : String?
	var previewUrl : String?
    var actionVideoUrl : String?
	var sort : AnyObject?
	var updateTime : String?
	var updateUser : Int?
	var version : Int?


	class func newInstance(map: Map) -> Mappable?{
		return MCStartXunLianActionPlanDetailActionList()
	}
	required init?(map: Map){}
	private override init(){}

	func mapping(map: Map)
	{
		actionBenifitVoice <- map["actionBenifitVoice"]
		actionId <- map["actionId"]
		actionName <- map["actionName"]
		actionNumber <- map["actionNumber"]
		actionTime <- map["actionTime"]
		actionType <- map["actionType"]
		actionWeight <- map["actionWeight"]
		beforeActionVoice <- map["beforeActionVoice"]
		createTime <- map["createTime"]
		createUser <- map["createUser"]
		id <- map["id"]
		isDeleted <- map["isDeleted"]
		planDetailId <- map["planDetailId"]
		planId <- map["planId"]
		previewUrl <- map["previewUrl"]
        actionVideoUrl <- map["actionVideoUrl"]
		sort <- map["sort"]
		updateTime <- map["updateTime"]
		updateUser <- map["updateUser"]
		version <- map["version"]
		
	}

    /**
    * NSCoding required initializer.
    * Fills the data from the passed decoder
    */
    @objc required init(coder aDecoder: NSCoder)
	{
         actionBenifitVoice = aDecoder.decodeObject(forKey: "actionBenifitVoice") as? AnyObject
         actionId = aDecoder.decodeObject(forKey: "actionId") as? String
         actionName = aDecoder.decodeObject(forKey: "actionName") as? String
         actionNumber = aDecoder.decodeObject(forKey: "actionNumber") as? AnyObject
         actionTime = aDecoder.decodeObject(forKey: "actionTime") as? Int
         actionType = aDecoder.decodeObject(forKey: "actionType") as? AnyObject
         actionWeight = aDecoder.decodeObject(forKey: "actionWeight") as? AnyObject
         beforeActionVoice = aDecoder.decodeObject(forKey: "beforeActionVoice") as? AnyObject
         createTime = aDecoder.decodeObject(forKey: "createTime") as? String
         createUser = aDecoder.decodeObject(forKey: "createUser") as? Int
         id = aDecoder.decodeObject(forKey: "id") as? String
         isDeleted = aDecoder.decodeObject(forKey: "isDeleted") as? Int
         planDetailId = aDecoder.decodeObject(forKey: "planDetailId") as? String
         planId = aDecoder.decodeObject(forKey: "planId") as? String
         previewUrl = aDecoder.decodeObject(forKey: "previewUrl") as? String
         actionVideoUrl = aDecoder.decodeObject(forKey: "actionVideoUrl") as? String
         sort = aDecoder.decodeObject(forKey: "sort") as? AnyObject
         updateTime = aDecoder.decodeObject(forKey: "updateTime") as? String
         updateUser = aDecoder.decodeObject(forKey: "updateUser") as? Int
         version = aDecoder.decodeObject(forKey: "version") as? Int

	}

    /**
    * NSCoding required method.
    * Encodes mode properties into the decoder
    */
    @objc func encode(with aCoder: NSCoder)
	{
		if actionBenifitVoice != nil{
			aCoder.encode(actionBenifitVoice, forKey: "actionBenifitVoice")
		}
		if actionId != nil{
			aCoder.encode(actionId, forKey: "actionId")
		}
		if actionName != nil{
			aCoder.encode(actionName, forKey: "actionName")
		}
		if actionNumber != nil{
			aCoder.encode(actionNumber, forKey: "actionNumber")
		}
		if actionTime != nil{
			aCoder.encode(actionTime, forKey: "actionTime")
		}
		if actionType != nil{
			aCoder.encode(actionType, forKey: "actionType")
		}
		if actionWeight != nil{
			aCoder.encode(actionWeight, forKey: "actionWeight")
		}
		if beforeActionVoice != nil{
			aCoder.encode(beforeActionVoice, forKey: "beforeActionVoice")
		}
		if createTime != nil{
			aCoder.encode(createTime, forKey: "createTime")
		}
		if createUser != nil{
			aCoder.encode(createUser, forKey: "createUser")
		}
		if id != nil{
			aCoder.encode(id, forKey: "id")
		}
		if isDeleted != nil{
			aCoder.encode(isDeleted, forKey: "isDeleted")
		}
		if planDetailId != nil{
			aCoder.encode(planDetailId, forKey: "planDetailId")
		}
		if planId != nil{
			aCoder.encode(planId, forKey: "planId")
		}
		if previewUrl != nil{
			aCoder.encode(previewUrl, forKey: "previewUrl")
		}
		if sort != nil{
			aCoder.encode(sort, forKey: "sort")
		}
		if updateTime != nil{
			aCoder.encode(updateTime, forKey: "updateTime")
		}
		if updateUser != nil{
			aCoder.encode(updateUser, forKey: "updateUser")
		}
		if version != nil{
			aCoder.encode(version, forKey: "version")
		}
        
        if actionVideoUrl != nil{
            aCoder.encode(actionVideoUrl, forKey: "actionVideoUrl")
        }
	}

}
